<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Microsoft.Media.TimedText">

    <Style TargetType="local:TimedTextCaptions">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:TimedTextCaptions">
                    <Grid x:Name="CaptionsPresenterElement"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="local:CaptionBlockRegion">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:CaptionBlockRegion">
                    <Grid x:Name="LayoutRoot">
                        <Border x:Name="CaptionsBorder" HorizontalAlignment="Left" VerticalAlignment="Top">
                            <Grid x:Name="CaptionsRoot">
                                <StackPanel x:Name="captionsPanel"/>
                            </Grid>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
